[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nv-2.1.20.tar.bz2

[deps]
xproto
libx11
xorg-server

[vars]
filesize=396982
sha512=f7c3f00aa949bdffdcb180fa727204b1cdbbad560919e111c589f8614fd897186cdefe014714505aa4646419b4d8bb879eaca96fea032b56cc8c71ba7faa6373

[build]
patch -p1 < "$K"/xf86-video-nv-mibstore.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
./configure -C --prefix="$butch_prefix" $xconfflags

make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

